# from fastapi import Depends, FastAPI
# from .controller import items, users        # 从 routers 导出路由文件：items, users
#
# import uvicorn
#
#
# app = FastAPI()
#
#
# @app.get("/")
# async def index():
#     """
#     注册一个根路径
#     ：return
#     """
#     return {"message": "Hello World."}
#
#
# @app.get("/info")
# async def info():
#     """
#     项目信息
#     : return
#     """
#     return {
#         "app_name":"FastAPI框架学习",
#         "app_version": "v0.0.1"
#     }
#
#
#
#
# # 挨个注册文件
# app.include_router(users.controller)
# app.include_router(items.controller)
# app.include_router(
#     admin.controller,
#     prefix="/admin",
#     tags=["admin"],
#     depends=[Depends(get_token_header)],
#     responses={418: {"description": "I'm a teapot"}},
# )
#
#
# @app.get("/")
# async def root():
#     return {"message": "Hello Bigger Applications!"}


